package shiyaner;

public class Teacher extends Person {
    private Course course;


    public Teacher(int id, String name, String gender) {
        super(id, name, gender);
    }


    public Course getCourse() {
        return course;
    }
    public void setCourse(Course course) {
        this.course = course;
    }

    public String toString() {
        return getName();
    }
}